From 4dbc47c4614b225edb4fa820201636e929b2e278 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 23 Jun 2005 09:41:14 +0000 Subject: [PATCH] bitkeeper revision 1.1734 (42ba83ba7bRweVDldhJ4nYZQomQ8Lg) Fix the x86/64 build. My change to make PAGE_SIZE a signed quantity also made it int rather than long, which turns out to break stuff. Debugged by Xin Li at Intel. Signed-off-by: Keir Fraser --- xen/include/asm-x86/page.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/include/asm-x86/page.h b/xen/include/asm-x86/page.h index 29b9f518a8..7732648f37 100644 --- a/xen/include/asm-x86/page.h +++ b/xen/include/asm-x86/page.h @@ -6,7 +6,11 @@ * It is important that the masks are signed quantities. This ensures that * the compiler sign-extends a 32-bit mask to 64 bits if that is required. */ +#ifndef __ASSEMBLY__ +#define PAGE_SIZE (1L << PAGE_SHIFT) +#else #define PAGE_SIZE (1 << PAGE_SHIFT) +#endif #define PAGE_MASK (~(PAGE_SIZE-1)) #define PAGE_FLAG_MASK (~0) -- 2.30.2